package commands;

import observers.LoggerObserver;
import utils.EditorContext;

public class HistoryCommand extends Command {
    private int lineNumber;

    public HistoryCommand(EditorContext context, int lineNumber) {
        super(context);
        this.lineNumber = lineNumber;
    }

    @Override
    public void execute() {
        LoggerObserver.getInstance().history(lineNumber);
    }
}
